//package com.ymm.web.controller;
//
//import com.ymm.lulutong.dto.OrderShipperDTO;
//import com.ymm.system.api.constants.TradeEntity;
//import com.ymm.system.api.dto.CargoDTO;
//import com.ymm.system.api.dto.OrderShowDTO;
//import com.ymm.system.api.facade.SystemDefinePriceService;
//import com.ymm.system.api.facade.SystemDisplayService;
//import com.ymm.system.api.facade.SystemDriverOrderTradeService;
//import com.ymm.system.api.utils.Result;
////import com.ymm.system.core.repo.ShipperRelatedRepo;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.dubbo.config.annotation.Reference;
//import org.apache.ibatis.annotations.Param;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.math.BigDecimal;
//import java.util.ArrayList;
//import java.util.Date;
//import java.util.List;
//
///**
// * @Company: CUG
// * @Description: TODO
// * @Author: LiYangyong
// * @Date: 2022/8/1/001 23:07
// **/
//
//
//@Slf4j
//@RestController
//@RequestMapping("/system")
//public class SystemController {
//
//    @Autowired
//    private SystemDefinePriceService systemPriceService;
//
//    @Autowired
//    private SystemDisplayService systemDisplayService;
//
//    @Autowired
//    private SystemDriverOrderTradeService systemDriverOrderTradeService;
//
//    @Autowired
//    //private ShipperRelatedRepo shipperRelated;
//
//    @RequestMapping("/price")
//    public Double definePriceTest(){
//        System.out.println("是否执行");
//        CargoDTO cargoDTO = new CargoDTO();
//        cargoDTO.setCargoDesLat(BigDecimal.valueOf(118.7787));
//        cargoDTO.setCargoDesLon(BigDecimal.valueOf(31.99226));
//        cargoDTO.setCargoSrcLat(BigDecimal.valueOf(118.798));
//        cargoDTO.setCargoSrcLon(BigDecimal.valueOf(32.04835));
//        cargoDTO.setCargoDeliveryTime(new Date(2022,2,23,11,23,11));
//        cargoDTO.setCargoRequireType(3);
//        Double price = systemPriceService.definePrice(cargoDTO);
//        return price;
//    }
//
////    @RequestMapping("/testmysql")
////    private Integer testMysql(Long tradeId){
////        return systemDisplayService.selectTradeExist(tradeId);
////    }
//
//    @RequestMapping("/testOrder")
//    private List<OrderShowDTO> testOrder(){
// //       return systemDisplayService.searchOrderDetailByPage();
//        return null;
//    }
//
//    @RequestMapping("/test")
//    private String testTradeState(Long tradeId){
//        log.info("tradeId:{}",tradeId);
//        Result result = systemDriverOrderTradeService.updateTradeState(tradeId);
//        return result.getCode().toString();
//    }
//
//
////    @RequestMapping("/testShipper")
////    public com.ymm.lulutong.utils.Result<List<OrderShipperDTO>> test999(){
////        System.out.println("跑到了吗？");
////        List<Long> ShipperIds = new ArrayList<>();
////        ShipperIds.add(1L);
////        com.ymm.lulutong.utils.Result<List<OrderShipperDTO>> shipperInfo =
////                shipperRelatedRepo.getShipperInfo(ShipperIds);
////        return shipperInfo;
////    }
//
//    @RequestMapping("/testEx")
//    public String test1(){
//        return "hello";
//    }
//
//
//}
